<?php
use yii\helpers\Html;
use app\models\EntryForm;

$model = new EntryForm();
$model -> name = '菜';
$model -> email = "鸟";
if($model->vaildata()){
    //验证成功
    return $model;
}else{
    //验证失败
    return $model->getErrors();
}

?>
<?//= Html::encode($msg) ?>